package org.example.feign;


import org.example.domain.Prod;
import org.example.feign.sentinel.MemberProdFeignSentinel;
import org.example.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


//会员业务模块调用商品业务模块Feign接口
@FeignClient(value = "product-service",contextId = "MemberProdClient" , fallback = MemberProdFeignSentinel.class)
public interface MemberProdFeign {

    @GetMapping("prod/prod/getProdListByIds")
    public Result<List<Prod>> getProdListByIds(@RequestParam List<Long> prodIdList);

}
